﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CSharp_Form_Event
{
    public partial class FormChild : Form
    {
        public FormChild()
        {
            InitializeComponent();
        }
        public FormChild(string data):this()
        {
            //可以在这里使用参数....
            //InitializeComponent();加了this这个就不用写了
            this.Text = data;
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
